public static SAXParser newSAXParser(String schemaLanguage, Source schemas)
Factory method to create a SAXParser configured to validate according to a particular schema language and
optionally providing the schema sources to validate with.
The created SAXParser will be namespace-aware and not validate against DTDs. throws:SAXExceptionthrows:ParserConfigurationException
Parameters:schemaLanguage - the schema language used, e.g. XML Schema or RelaxNG (as per the String representation in javax.xml.XMLConstants)schemas - the schemas to validate againstReturns:the created SAXParserSee Also:newSAXParser(String, boolean, boolean, Source...)Since:1.8.7
|